Quick Nav:  Online Store   |   Login | Register

PB replacementson external content

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
OM
<50 Posts
Posts:25


04/28/2008 5:46 AM  

Ok heres a good one, how can I modify content that comes from an external source via an iframe src=mysite.com/content.htm?

The mysite.com/content.htm page contains a js that loads from the external source, from aweber.com (mailing list management) and is in this form...

[script type="text/javascript" src="http://forms.aweber.com/form/99/split_nnnnnnnn.htm"][/script]

And that htm has another js that does a document.write("[html] etc etc etc [/html]")

In the middle of that html is the actual text I want to add class=Normal to: [center][div align=\"left\"]my text is here (etc)

Any ideas on how I can change that to be: [center][div align=\"left\" class="Normal"]

I tried a simple replace rule, but it did not have any effect.

The whole reason for this is that the other site (aweber.com) does not let you add class="Normal" to the displayed text..

OM

 (I had to edit this post several times to get the html and js to show ) :)

John Mitchell
Posts:2779


04/28/2008 7:11 AM  

You would have to get the javascript local to your server before you could do replacements on it.  The reason is that when you present a page to a user that has an external link to JS or CSS, the request for that resource goes directly from the user's browser to the other server.

One way to pull content to your server first is with a WebCapture as explained in the following thread.

http://www.snapsis.com/Support/tabid/601/forumid/9/postid/9770/view/topic/External-Content-question.aspx

The above will take the place of the IFrame, and then the call to the external JS will need to be changed to point to a file on your own server. Then you can change the file on your server. 

Another way to accomplish what you are trying to do is to leave everything the way it is, and add some javascript into your own page after the IFrame that will look in the page and add that text on the client side.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > PB replacementson external content



ActiveForums 3.7
Powered by: Snapsis Software