0
Welcome Guest! Login
0 items Join Now

Making a window popup for content with window.open javascript?

  • Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • I am trying to make some of my links open in a little popup window, no navigation, no template, just the content in a new popup window. It's for policies and stuff, like our shipping policy, and our warranty information and such. I want it to just popup in a window on top of the main site window they are viewing. I noticed Peter did something similar to what I am trying to do in this post here:

      http://www.rockettheme.com/forum/index.php?t=4865&rb_v=viewtopic

      I tried using the window.open in my jce editor, but when I click on the show/hide link to take me back to the editor view instead of the code view, it seems to strip the window.open code out. No clue what to do...I have a similar problem to this when I was trying to do image mapping, and I found a short term fix by going to my global config page and setting it to no wysiwyg editor, then adding the code and all worked fine. However, if I ever went back to edit that page and had the editor on, it would strip the code out again, was really annoying. I found a much better solution by using the extended elements field in the JCE configuration. I added: map[name],area[shape|coords|href]
      to the extended elments text field and then it stopped stripping out my code for image mapping and all worked fine. I am assuming this problem will have a similar solution, but I do not know what syntax to put in the extended elements to get it to stop stripping the window.open code out. If anyone knows how to get the popup windows working, please let me know!

      Thanks,
      David Henderson
  • Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • Mack's Avatar
    • Mack
    • Elite Rocketeer
    • Posts: 535
    • Thanks: 0

    Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • I had a similar issue with JCE back when I used to use it.

      One the backend, Mambots - open TinyMCE WYSIWYG Editor - look on the right for the Code Cleanup checkbox. I turned mine off.
  • Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • Mack wrote:
      I had a similar issue with JCE back when I used to use it.

      One the backend, Mambots - open TinyMCE WYSIWYG Editor - look on the right for the Code Cleanup checkbox. I turned mine off.


      So you used to use JCE, but went back to TinyMCE?

      Hmm, I found a spot in the jce mambot config that says "Verify HTML", "Perform HTML Cleanup (Recommended)" Going to try turning that off:)
    • Last Edit: 18 years 2 weeks ago by William E Dooley.
  • Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • Well, that didn't work for JCE, but I switched back to tiny MCE, and noticed that when you click on the link button, there is a tab in there named "Popup" I went there, and it have a check box for using javascript popup window, and then asks for url, and has all of the attribute options in there for you to set, sothat's what I needed. The only thing I can't figure out now is, I need the popup to just have the content in it. As it is, the window comes up just like I need, it has no navigation, it has scroll bars, and is sizeable...everything I need is there. So the problem is, I can't get the tempalte off of it!LOL It looks funny having the little popup window and my template in it, so I am trying to figure out how to strip the template off and just have the content show up in the window. Would that possible be done by the URL? Like maybe the tempalte is there because for the url I used: "index.php?option=com_content&task=view&id=85&Itemid=0" and I should have used something else? If so, anyone know how the URL should be written to not include the template?

      Thanks,
      David Henderson
    • Mack's Avatar
    • Mack
    • Elite Rocketeer
    • Posts: 535
    • Thanks: 0

    Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • William E Dooley wrote:
      So you used to use JCE, but went back to TinyMCE?

      No. I ended up with: editor.asbrusoft.com/  ;

      I had some performance issues with JCE once the traffic got heavier so I switched.
  • Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • Performance issues from which editor you chose to use? The code from JCE looked pretty clean to me, of course I am no expert, so I could be wrong:) At the moment I am searching the joomla forums for an answer on how to get a window to popup withjust the content in it, and leave off the template surrounding it. So far I have found 3 posts asking the question, but the only responses to the question have been another question!LOL If anyone knows how to do this, please save me from this long tedious task!LOL

      Thank you,
      David Henderson
  • Re: Making a window popup for content with window.open javascript?

    Posted 18 years 2 weeks ago
    • Ok, I figured it out. I took the url that it uses when you cick the preview button in the editor:) All works now!

      Thanks,
      David Henderson

Time to create page: 0.082 seconds