Link to home
Start Free TrialLog in
Avatar of webdott
webdottFlag for United States of America

asked on

website get element code - pull text from one page to next

i want to be able to change text on one web page and have it change on another.

is there a way to do that using the GetElement javascript?

thanks
Avatar of leakim971
leakim971
Flag of Guadeloupe image

put the content in an hidden input or a cookie or as parameter in the url
Avatar of ludofulop
ludofulop

hi, sorry, it is not possible to do it using only javacript, you will need some server side scripting.

Only exception is if the pages are on the same domain, then you can use AJAX on second page to retrieve contents of the first page, and parse it using string functions or regular expressions, to get only the part you need
Avatar of webdott

ASKER

leakim971
can you give an example?

ludofulop
i use godaddy hosting which has AJAX as a feature.

the pages will be on the same domain, how would i do that with AJAX?

thanks
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of webdott

ASKER

thank you

sorry for the delay. i thought i closed this out
with your answer a long time ago.