Cannot save script generated web page

I found that safari cannot save a script generated page by (File -> Save as). I've written a simple test page as follow:
<html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
test (<-this link call the OpenPopUpWin() function)<br>
</body>
</html>
Does anyone have similar problem before? Is it a bug in safari? Are there any workarounds if I want to save the page?

I guess I'm still not understanding your problem. I took your original script, made the one change as mentioned in my earlier post, and it worked.
It's quite likely/possible that Apple filter javascript embedded in posts - all sorts of nasty things could happen if they didn't, but you're not using Safaro to create your pages, are you?
Just as an example, this seems to do what you describe - copy and paste it into a new text document and see what happens:
<pre class=command><html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
<a href="#" OnClick="OpenPopUpWin()'>test</a> (<-this link call the OpenPopUpWin() function)
</body>
</html>
</pre>

Similar Messages

  • Error on generating web pages

    HI Experts:
    I am trying to generate one web page through office front page.
    there I selected one query template and related display template(grid). Here I am trying to generated web page, but i am getting one error like "Igrid" class file is not find in archive Illum8.zip file.
    Could you please explain me where I did mistake in this scenario.      
    One more scenario is, I generated same one dynamic generated page using the above same query template and same display template, here I am getting display but when i save this page in certain location. from there I am not getting the same dispaly but the error is same as above (error like "Igrid" class file is not find in archive Illum8.zip file.
    Regards,
    Chandra.

    Hi Gopal,
    You can put no of dynamic generate pages into one web page.For your case one is chart and another one is grid.
    First you generate dynamic page for chart and copy the source code and put in the web page under body tab.Then you generate dynamic page for Grid and copy the source code and paste it in the web page under body tab.
    For e.g.
    <body>
    <APPLET NAME="TrendChart" CODEBASE="/Illuminator/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="800" HEIGHT="400" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="FillingArea/SampleQuery">
    <PARAM NAME="DisplayTemplate" VALUE="FillingArea/SampleChart">
    </APPLET>
    <APPLET NAME="GridApplet" CODEBASE="/Illuminator/Classes" CODE="iGrid" ARCHIVE="illum8.zip" WIDTH="800" HEIGHT="400" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="FillingArea/SampleQuery">
    <PARAM NAME="DisplayTemplate" VALUE="FillingArea/SampleGrid">
    </APPLET>
    </body>
    Thanks,
    manisha

  • HT1338 In my e mails, I cannot get to a web page that is mentioned in the body of the e mail

    In my e mails, I cannot get to a web page that is mentioned in the body of the e mail.

    That's probably a bookmark you have saved in Favorites.
    Tap bookmark icon>Favorites>Edit>Delete the bookmark

  • Can i invoke Photoshop Scripting in web page?

    Can i invoke Photoshop Scripting in web page?

    hmmm...
    On the page in admin,we should have a button to export the  item to Photoshop.  A PSD of the entire should be assembled from the elements of the XML. This means that the text leading and tracking will need to be translated from server settings to Photoshop settings. Font sizes should also match.

  • How can I have Safari save my opened web pages when I quit so that when I open next time they will be there?

    How can I have Safari save my opened web pages when I quit so that when I open next time they will be there? I can do that in Firefox automatically, but can't seem to find how to do it in Safari.  I'm thinking maybe it's just now possible yet?

    From your Safari menu bar click History / Reopen All Windows from Last Session.
    Or..
    Glims can  re open tabs from a previous session if that helps.
    http://www.machangout.com/
    Compatible with Snow Leopard v10.6 and Safari 5+ and it's free.

  • Copying dynamically generated web pages source

    There is a problem, that I need to copy dynamicaly generated web pages text (it must work like search crawler). In simple pages it's not difficult, just opening the webpage and copying content to array. something like this
                URL my_url = new  URL("http://www.somepage.com/");
             BufferedReader br = new BufferedReader(new InputStreamReader(my_url.openStream()));
                String strTemp = "";
                while(null != (strTemp = br.readLine())){
                System.out.println(strTemp);But what to do whent content generated dynamically with javascript? Couple pictures of what I have in mind.
    First is what I get,
    First
    second is what i need
    Second
    Does it possible to do with JAVA, and from where I need to start?
    Thanks you in advance for your answers
    Edited by: darjusas on Jun 17, 2010 2:51 AM

    So I figured out how to re-write a new reference movie. What though is the description of the various data rate options?
    I'm using the tool "XML to RefMovie' as MakeRefMovie is not available for Windows.
    The syntax is:
    <qtrefmovie>
    <refmovie src="test_28.mov" data-rate="28.8 modem" />
    <refmovie src="test_56.mov" data-rate="56k modem" />
    <refmovie src="test_t1.mov" data-rate="t1" />
    </qtrefmovie>
    I just want to use the same data rates that QT Pro uses, Desktop, iPhone and iPhone Cell. Can someone help me understand what QTPro uses for those 3 speeds? Thanks.
    Thanks.
    George

  • The file "Acceptance Letter.pages" doesn't exist. Since installing Yosemite on MacBook Pro I cannot save or export from Pages. Just get the message at beginning of this post. How to solve problem?

    I cannot save or export from Pages since installing Yosemite on MacBook Pro . I just get the message at beginning of this post “Acceptance Letter.pages” doesn’t exist or whatever file title I have inserted How to solve problem?

    Thanks Peter but I was not seeking to store with I-Cloud. In fact I never store documents with I-cloud.
    I was in fact trying to store the files to Documents, which is where I usually keep such things.
    Have now discovered that if I leave the file untiled and simply close it, rather than saving it then it will save, oddly, to Documents. I then have to re-title it and move to the folder I want it in.
    Despite the above, even once it is titled and saved in Documents then if I reopen it I still cannot then Export it to a Word or PDF file. I still just get the message . xxxxxx.pages does not exist!
    Bad news as I am constantly exporting documents to Word and PDF to send to others who do not use a Mac

  • How to generate web page from Excel spread sheet?

    I have a spreadsheet containing a long string of HTML text.  It can be viewied below and each line needs to be one web page.  I also have the same file in a flat text file.
    Header 1
    Header 2
    Header 3
    <h3 style="text-align:center;">Minutes of the Annual Meetings of the Brethren: 1778 - 1917</h3>
    <p style="text-align: center;"><a href="images/books/001/220.png" title="Page 220 — Minutes of the Annual Meetings of the Brethren" rel="rokbox[600 905](demo)"><img src="images/books/001/220.png" border="0" alt="Page 220 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" title="Page 220 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" width="500" height="754" /></a><span style="text-align: center; display: block; margin-top: 6px;">Page 220</span></p>
    <p style="display:none;"> </p>
    <h3 style="text-align:center;">Minutes of the Annual Meetings of the Brethren: 1778 - 1917</h3>
    <p style="text-align: center;"><a href="images/books/001/221.png" title="Page 221 — Minutes of the Annual Meetings of the Brethren" rel="rokbox[600 905](demo)"><img src="images/books/001/221.png" border="0" alt="Page 221 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" title="Page 221 — Minutes of the Annual Meetings of the Brethren [Click for larger image]" width="500" height="754" /></a><span style="text-align: center; display: block; margin-top: 6px;">Page 221</span></p>
    <p style="display:none;"> </p>
    I need Dreamweaver CS4 to take this spreadsheet and generate a series of web pages.  The head section will be the same for all the generated HTML files.  A sample page can be viewed here.
    If I can locate a script that will do this then I can take an extension for a Joomla web site and pass along the series of page to it.  The Joomla extension will then create my articles for me.
    Cordially,
    Wayne

    Thanks for the thought, but that generates one large page with each row an item on the page.  What I need is for DW to take each row and create a page of that row.  Even then, in Excel you have to insert rows before my first row of data.  Into thos rows you paste the head information doctype, metadata, the closing head, etc., etc.  Then you have to add a row at the end closing the body and html statements.
    I'll have to try this with something else.  For something so simple you'd figure there was a script to do it.
    Cordially,
    Wayne

  • Save as pdf web page

    I am running Win 7 64bit with Adobe XI with IE 11. My convert web page to PDF won't save the file as a pdf but rather it saves it as a ".com" file name extension and the file type is marked "MS Dos Application" in Explorer. 
    I just installed this two months ago and have repaired and reinstalled the software repeatedly without repairing the problem.

    There is never a need to type the file name because it's done automatically as the file names takes on the title of the news article.  Under the file name is a toggle for Save as Adobe PDF, which is by default saving as pdf.    FYI, If I print the web page and then choose Adobe, the web page prints but the layout isn't as good as printing the web page and I have to write in the file name using this option.
    Usually the Convert webpage to pdf works and works very well but I have had this problem in the past with other versions. It's a bug I believe.
    Maybe I will try repair a few more times.

  • Firefox won't save images or web pages, even after upgrading, reinstalling and resetting... How do I fix this?

    A couple upgrades ago, I noticed that Firefox wouldn't boot properly. According to "Task Mgr.", it would load partially with a "*32" after it's name in the listing, but not enough to display a window on screen. After ending the process, and restarting the program again it would usually boot fully. (not always, but usually) The "*32" confuses me as I run a 64bit Windows 7 system and during installation I was sure that I saw mention of a 64bit program being installed. Apparently, after the last upgrade, that issue was resolved; but Task Mgr. still lists the program with a "*32" after it.
    The issue now at hand is that Firefox won't save images online or save web pages. I'll right-click and select "save image as" or "save page as" and... nothing. No box appears prompting me to name a file or designate a location to save that file to. Nor does anything happen when I use the "File" menu for the same function either. This is, to say the least, is very frustrating. There may be other things not functioning that I'm not currently aware of, but I haven't been able to or had time to do a complete check of the functionality of the program. I've never had issues of any significance with Firefox in the past. It's always been very reliable for me, so I'm hoping there's a relatively quick fix that I simply haven't been made aware of yet...
    Thank you for your suggestions and time looking into this matter...
    Curtis Laipple

    It probably will take a little time to work through this troubleshooting article, but hopefully you will get a complete solution: [[What to do if you can't download or save files]].
    Regarding the *32, I see the same thing on Win 7 Pro x64. No worries. Firefox for Windows is compiled only as a 32-bit application.

  • Cannot create .pdf from web pages X Pro

    Hmmm. I missing a trick here.
    Acrobat X Pro.
    Windows 7 64x.
    Create web pages from Chrome
    So I log into my New York Review of Books account as a Subscriber.
    I locate an article that is marked ' locked ', subscribers only  - I view it as one entire page.
    The whole article is visible - it should be, I'm a subscriber.
    I load the URL into 'Save As Web Page '  in Acrobat X Pro
    I click on Save. It doesn't save it it truncates the article after two pages placing a Nag Box at the end suggesting I take out a subscription. ( but I have ).
    When I attempt this on articles not ' Locked ' they save perfectly in Acrobat X Pro.
    NYRB web support are not really clued up on this.
    Why does this happen ...surely Acrobat x Pro can create the .pdf from the browser content and doesn't have to go back to the source in these circumstances?
    If I go into Chrome and PRINT the same Locked web page to PDF I get a half formatted black and white replica of the article in its entireity ( no Nag Box).
    I'm missing something here. Help please.

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • How do I save contents from web page to iWork

    This may be the wrong community so please let me know if it is? I want to save a document from a web page in Safari to iWork on iCloud.com. The document is of my son's USA hockey membership confirmation and I don't know how to save it to iWork or which application to save it to once I do? Numbers, Pages? Thank you in advance..

    I thought I was clear about what I'm trying to achieve... I want to view my document in either Pages or Numbers, because they are on both my Macs and iPhone/iPod touch's.
    Aug 25, 2012 2:57 PM (in response to Winston Churchill)   
    It's really just content on a web page but its information I need to have access to across all my devices from a MacBook Pro to iPhone and iPod touch. I want to be able to view it in the Pages iOS app and the OS X app.
    I just need to know the best way to save it, & in the fewest amount of clicks preferably.   

  • Browser cannot display E3200 router web page from ethernet connection but can from wireless

    I have installed my E3200 downstream from the Verizon FiOS Actiontec (going the other way disables FiOS functions).
    1.  My browser can get to the E3200 (192.168.1.2) when connected via wireless, but not when connected via ethernet cable.
         How do I fix that?
    2. When going to connect wirelessly, the 2GHz connection is visible but the 5 GHz connection is not
         (I have them named differently).
         How do I see both wireless connections?

    My browser cannot get to my E3200 setup web page from a wired Ethernet connection (wireless works fine).
    The Linksys E3200 (1Gb ethernet, “n” wireless) is installed downstream from a Verizon FiOS Actiontec router (10/100 ethernet, “g” wireless).
    I cannot put the E3200 upstream from the Verizon router because I would lose FiOS TV capabilities.
    The E3200’s fixed IP address is 192.168.1.2 (the Verizon router is 192.168.1.1)
    I cannot change the subnet (e.g. to 192.168.2.x)
    Clearing the browser cache and rebooting both routers doesn’t help.
    Both computers tested have dual band “n” network adapters.
    So... wireless connection works fine, but I cannot get to the setup page via wired ethernet.
    Help?

  • Cannot Save as Template in Pages '09

    I would like to create a template in Pages '09. However, whenever I go to File -> Save as template and try to save it, Pages gives me an error message telling me that I don't have permission to do so. I have selected Get Info on the file and made sure that my permissions were Read & Write (they were), but I still cannot save the file.
    I am using Mavericks iOS, which has given me nothing but trouble. I hate it....
    Any suggestions?

    It is more likely that where you want to save it hasn't the right permissions.
    If you hate Mavericks you shold go back to an earlier MacOS.
    You have  a Macbook Pro. Have you restarted it lately?  You could start it on the installation disk you get when you buy the computer ans use the disc utility to Repair permissions.

  • Read HTML tags and Save Images in web page

    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.

    cnapagoda wrote:
    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.If you have a big, long string with HTML content in it you might try splitting on a regex like so:
    String html = ...
    String[] imgTags = html.split("<img.*?>");[http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)|http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)]
    to get your image tag data and then parsing that to get the src attribute. You can either treat this problem as a big string-parsing problem, or getting some HTML DOM library and using that to structure the page as a tree for easier access.
    If you want more help you'll have to show the code you have so far. We can't write this for you.

Maybe you are looking for