/    Sign up×
Community /Pin to ProfileBookmark

Help – Script src

[QUOTE]

<script src=”http://****************loquitor/sengal2.js[B]?sengal=1[/B]“></script>

[/QUOTE]

Hye.. May i ask what is the meaning of the bold part in above script tag?
Is it any effect?

Thanks for any help. ?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@mrhooJun 16.2008 — Adding a get string to an url causes the browser to fetch the file from the server, rather than using a cached version.

The url can also be parsed for special processing, in this case by reading the src of the script element.
Copy linkTweet thisAlerts:
@eykalsyamimauthorJun 16.2008 — thank you for the reply. but I'm not really clear about this thing.
Copy linkTweet thisAlerts:
@Declan1991Jun 16.2008 — It's is a GET HTTP variable. The reasons to use it for js files are so that a new version is gotten from the server, and not a cached version (so if you change the file, you get the new version), and if server-side processing is done on the script, it can mean that you get a different file depending on which variables or values you pass.
Copy linkTweet thisAlerts:
@eykalsyamimauthorJun 16.2008 — i see now.. it means we'll see the updated code..

Thank you for all who reply on this topic..
×

Success!

Help @eykalsyamim spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...