• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

novice HTML or JavaScript question

bleuless

Senior member
first of all can this be done with just html / javascript?

i need to update my webpage dynamically depending on today's date, then depending on the date string, goes to look at another webpage and searches for that string, and return the first 8 characters after that string.

i have basic html and javascript knowledge. and I can get today's date string in javascript so far. but i don't know how to write javascript for it to interact with another page...
 
You would most likely run into cross site scripting security issues before you got this to work.

You can do things similar to AJAX style scripting to read text from a file if you have access to it. Is the other web page you are trying to read within your own site?
 
you're going to want to use server side programming for this

care to elaborate the details of the project? It doesn't sound very efficient
 
I don't think Javascript has permissions to do something like that, in regards to it being a security issue.

+1 for server side scripting.
 
I am trying to write a form for bugzilla posting bug on my intranet page, so when people use our CRM system (salesforce) they get redirected to my form, and populate the information in there, now the oncall engineer goes by a calendar which is on another intranet page maintained by someone else. so I like to some how get that info and fill it in the form too before they post the bug.

i hope that makes sense..
 
As others have said, JavaScript probably isn't your best choice for this task. It *might* be able to be done if it's all on the same site, but cross-site JavaScript is a big no. Even if you could somehow find a way to make JavaScript do it on your machine, common security settings disallow it. It would be considerably easier in a server-side language.
 
Back
Top