Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28590
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Update Java script variables dynamically |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <cb5a292f-45bc-4a75-9bca-a9d43acbfa86@googlegroups.com> |
| Date | 2015-09-01 16:01 +0200 |
| Message-ID | <XnsA508A2F0C8140eejj99@194.109.6.166> (permalink) |
techie24by7@gmail.com wrote on 01 Sep 2015 in comp.lang.javascript: > In above index.html i have external java script being referred. Impossible. There is no "Java script", as "Java" has no script version. There is "Javascript", and that is not a script version of "Java". There even is someone who is convinced that there is no "Javascript". > <script type="text/javascript" src="script.js"></script> > script.js has below variable. > > var MapColumns = 20, MapRows = 12; > > upon click of submit button in index.hmtl code, .html, I hope. > i want capture the values of r,c and update MapColumns, MapRows values > in java script (script.js) What do you wnt to do with it? Change the serverside script.js? Or enter them as variables in the new page? > and reload the page , how can i do that. use a <form> to send the values and window.location.search to receive the string and regex to get the values out of the string. <http://www.w3schools.com/jsref/prop_loc_search.asp> That is much easier using serverside coding, btw. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Update Java script variables dynamically techie24by7@gmail.com - 2015-09-01 05:44 -0700 Re: Update Java script variables dynamically "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-01 16:01 +0200 Re: Update Java script variables dynamically JJ <jj4public@vfemail.net> - 2015-09-01 22:13 +0700
csiph-web