Web Design Forum: Finding text displayed in browser by Javascript, locally? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Finding text displayed in browser by Javascript, locally?

#1 User is offline   jens.w 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-January 12
  • Reputation: 0

Posted 24 January 2012 - 04:10 AM

Hello

This is a question from a users perspective, not a coder.

Im visiting a site (in Opera or Internet Explorer) and i need to find some text that is generated by a javascript on the website server.
When i view the html source code, i cannot see this particular text, but since its still showing on my screen it must be stored somewhere on my harddisk drive.

In what directory or file is text from javascripts stored on my computer? Opera or IE prefered, but answer for any browser will do :)

/Jens from Sweden
0

#2 User is online   andyl 

  • White space enthusiast
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,535
  • Joined: 21-January 10
  • Reputation: 210
  • Gender:Male
  • Location:Surrey
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 24 January 2012 - 09:55 AM

Javascript doesn't load files/data from your computer. The language doesn't have access to your hardisk, other than cookies, for security purposes.

Can you provide a link?

This post has been edited by andyl: 24 January 2012 - 09:56 AM

0

#3 User is offline   jens.w 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-January 12
  • Reputation: 0

Posted 25 January 2012 - 08:16 AM

View Postandyl, on 24 January 2012 - 09:55 AM, said:

Javascript doesn't load files/data from your computer. The language doesn't have access to your hardisk, other than cookies, for security purposes.

Can you provide a link?


Aha, so perhaps the text is stored in the cookie then? Where are the cookies stored?

Here is the link:
http://www.lulebo.se...able/HYRES_LGH/

The "missing" text is the one that shows up after i have made a selection in the boxes and pressed the "Sök" button (search), if there is a search result, that is.
0

#4 User is online   andyl 

  • White space enthusiast
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,535
  • Joined: 21-January 10
  • Reputation: 210
  • Gender:Male
  • Location:Surrey
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 25 January 2012 - 07:22 PM

That works by utilising AJAX. In Layman's terms, Javascript sends a request to a script on the web-server and the script responds appropriately. The response is then printed to the page via Javascript.

So:
Click button > Javascript sends request to server > Server responds > Javascript grabs response and handles (appends to page)

This post has been edited by andyl: 25 January 2012 - 07:22 PM

0

#5 User is offline   jens.w 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-January 12
  • Reputation: 0

Posted 27 January 2012 - 02:33 AM

View Postandyl, on 25 January 2012 - 07:22 PM, said:

That works by utilising AJAX. In Layman's terms, Javascript sends a request to a script on the web-server and the script responds appropriately. The response is then printed to the page via Javascript.

So:
Click button > Javascript sends request to server > Server responds > Javascript grabs response and handles (appends to page)


Allright. Not that that answers my question, but thank you.

So since i want to find text (textstring "Centrum") that javascript appends to page after grabbing info from server, what file/files do i look in, in my computer?
0

#6 User is online   andyl 

  • White space enthusiast
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,535
  • Joined: 21-January 10
  • Reputation: 210
  • Gender:Male
  • Location:Surrey
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 27 January 2012 - 10:42 AM

View Postjens.w, on 27 January 2012 - 02:33 AM, said:

Allright. Not that that answers my question, but thank you.

So since i want to find text (textstring "Centrum") that javascript appends to page after grabbing info from server, what file/files do i look in, in my computer?

It does answer your question - there's no files on your computer. You need to research Javascript, and more specifically, its utilisation with AJAX.

This post has been edited by andyl: 27 January 2012 - 10:42 AM

0

#7 User is offline   jens.w 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-January 12
  • Reputation: 0

Posted 31 January 2012 - 03:15 PM

If the strings that are loaded into the browser by Javascript are not saved in any file on my computer, then how do i get to them?
Becouse there is no doubt that the strings are present in some part of my computer memory.
0

#8 User is offline   Wickham 

  • Web Guru
  • View gallery
  • Group: Moderators
  • Posts: 2,876
  • Joined: 11-June 09
  • Reputation: 257
  • Gender:Male
  • Location:Salisbury UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 31 January 2012 - 03:30 PM

The Ajax request is held in your temporary internet files, but the actual text you are looking for has to be served (downloaded) so it's probably only on the temporary chip memory, not on the hard disk temp. internet files.

Similarly php processing files aren't stored in temp. internet files; just as well as many contain very private information like email addresses and passwords.

This post has been edited by Wickham: 31 January 2012 - 03:35 PM

0

#9 User is online   andyl 

  • White space enthusiast
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,535
  • Joined: 21-January 10
  • Reputation: 210
  • Gender:Male
  • Location:Surrey
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 31 January 2012 - 11:10 PM

View Postjens.w, on 31 January 2012 - 03:15 PM, said:

Becouse there is no doubt that the strings are present in some part of my computer memory.

There is considerable doubt - they're not stored on your computer other than in some terribly useless temporary file somewhere deep in your system.

To put it as simply as humanly possible:

The webpage gets the 'strings' (or data) from somewhere on the server, not on your computer. This method is known as an 'AJAX request'. You should research that to learn more.
0

#10 User is offline   jens.w 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-January 12
  • Reputation: 0

Posted 02 February 2012 - 02:09 PM

View PostWickham, on 31 January 2012 - 03:30 PM, said:

The Ajax request is held in your temporary internet files, but the actual text you are looking for has to be served (downloaded) so it's probably only on the temporary chip memory, not on the hard disk temp. internet files.

Similarly php processing files aren't stored in temp. internet files; just as well as many contain very private information like email addresses and passwords.


Hmm, "probably" :) If the text from javascript were to be saved in the temp. internet files (and not only in some part of RAM), would i be able to read it then or is it encrypted? What is the folder name(s) where the temp. internet files are saved in say Opera or Explorer? If i knew that i could clear these folders and visit only that page, to access the right data.

View Postandyl, on 31 January 2012 - 11:10 PM, said:

There is considerable doubt - they're not stored on your computer other than in some terribly useless temporary file somewhere deep in your system.

To put it as simply as humanly possible:

The webpage gets the 'strings' (or data) from somewhere on the server, not on your computer. This method is known as an 'AJAX request'. You should research that to learn more.


And it is that "terribly useless" file that i need to find! Do you know where it is?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users