I want to give a code snippet to partnering websites, so that the script on their page draws from a page on my server. I think "quote of the day" type widgets use this.I copied this code from a site and it works for them, but when I switch the url to a php page (containing only text wrapped in a div) on my site, it doesn't work. I realize this might also be a php question, but I didn't want to cross-post. Does it have something to do with the "jscript=1" variable being passed?
I have a webpage which allows the user to select the content they would like to display using ajax to do this. the problem i have is that one display option is a file tree which only works when loaded in the head section.
The following code is loaded in the head section:
Cannot figure out whether or not i can adjust the code to load only when the ajax call to the file tree is made.
I'm trying to replace the <head> of a page with the <head> of another page.[code]I call $("head").load("/About head")expecting to replace the <head> section of the current page with that of URL...However, the function seems to insert an empty string into my <head> tag.
When you load part of pageB with ajax into pageA, what happen with the head section (title, meta, css link and script link...)
I mean, what is the best practice when you insert into the DOM a part of pageB with all the code (title, meta, etc...) that is associated with pageB. (initially i was inserting the whole pageB because of "gracefull degradation", but this inserts the whole pageB DOM into the pageA DOM).
I have a e-mail on my myspace account and I didn't write it. How can I find out the IP addresse from where it originated? I have looked at it and looked at it but I can't find anything except my myspace account addresse on it. I want to know basically where to look to find out the computer or IP addresse that it originated from.
I would you grab the source code from an IFRAME and display it in a textarea?
I'm trying to create a sort of preview page that both shows a rendered page, then shows the source code next to it.
: I'm thinking that using OnLoad JS event in the HTML body tag would allow this to work. The page loads, the OnLoad event calls a JS function that pulls the innerHTML from the IFRAME and inserts it into the textarea.
I'm wondering, I've looked at several examples of this, but none seem to work. I can get POST functions to work (posting data to a certain URL is no problem). However, I can't get the source code of a page. Here's the function I've got so far:
I'm wanting to use this to use certain settings in the script on my web site that I have stored on another page. The usage is like this:
And then googlesource should be populated with the source code of [url]. Just an example. why the above function is not working? I've tried messing around with all kinds of request headers and everything.