Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Print the contents of a variable into the source
- From: CNafziger at sauder.com (Chris Nafziger)
- Subject: [Javascript] Print the contents of a variable into the source
- Date: Fri Aug 20 09:09:31 2004
Also, as far as your lower bit goes, the command-line utility that grabs the source output can follow server-side redirects, but not client side redirects. -----Original Message----- From: Allard Schripsema [mailto:allard-schripsema@xxxxxxxxxxxxxxxxxx] Sent: Friday, August 20, 2004 8:30 AM To: [JavaScript List] Subject: RE: [Javascript] Print the contents of a variable into the source Hi Chris, I don?t get it. i guess if the variable is known, you can do a document.write, innerText, objectx.value or something like that to show it. But that?s probably not the problem right? To make kbps appear in the source you?d have to use a server side script , and that means kbps is known at the server ( in asp and asp.Net: <%response.write("<!--" & kbps & "-->")%> ) If the kbps is determined using javascript, you cannot do what you want to do at the moment you want. you could consider reloading the same page sending your kbps in the querystring (or form, whatever) and getting it serverside and print it then. hope that helps, Allard Schripsema -----Original Message----- From: javascript-bounces@xxxxxxxxxx [mailto:javascript-bounces@xxxxxxxxxx]On Behalf Of Chris Nafziger Sent: Thursday, August 19, 2004 7:09 PM To: [JavaScript List] Subject: [Javascript] Print the contents of a variable into the source Really need some help on this one... Seemed easy enough at first... nextpage='results.php?kbps=' + kbps; // what can I do here to print the contents of the nextpage variable somewhere in the source? document.location.href=nextpage; <!--nextpage=results.php?kbps=1500--> Or //nextpage=results.php?kbps=1500 ...is what I need to see so it doesn't show up on the HTML page It's a long story involving SQL running a scheduled stored proc that executes pings, parses the results, summarizes the results, and sticks it in a database, along with this kbps value, retrieved from the source via a command line utility executed by the same stored procedure, so I end up with a table containing a constantly accumulating summary of speed, latency, and routing. I just need to get the contents of that variable into the source, so my parser can pick it up. Changing the other two lines of code, the other pages in the web, et cetera, is not an option. Like I said... Long story. How do I print the contents of a variable into the source? -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- This e-mail and any files transmitted with it may contain privileged, confidential, or proprietary information which may be protected from disclosure under law, and is intended solely for the use of the individual, group, or entity to whom this e-mail is addressed.? If you are not one of the named recipients, please notify the sender by e-mail and delete this message immediately from your computer.? Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.? Thank you for your assistance. _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript
- Prev by Date: [Javascript] Print the contents of a variable into the source
- Next by Date: [Javascript] Print the contents of a variable into the source
- Previous by thread: [Javascript] Print the contents of a variable into the source
- Next by thread: [Javascript] Print the contents of a variable into the source
- Index(es):