Recent Topics

javascripts in posts

started by on Jul 01, 2017 – Last touched: Jul 18, 2017

Jul 01, 2017 10:13    

I'm a lil confused here....

I'm on GodMode for all my blogs collections.. Currently I'm very actively promoting this particular blog at http://dealzone.quicksilverhq.com

The problem is with posts where I integrate javascripts... in some cases it works perfectly and in others, the script part gets stripped and nothing is shown.

for example this post works perfectly - http://quicksilverhq.com/donblog/DealZone/books but another similar script did not....

Any help in the right direction would be awesome...

Cheers

Jul 02, 2017 17:38

Your post is not very clear, it looks like spam. You give a link to a post that works, which I won't follow and a link to your site. So what really is the problem?

Jul 07, 2017 16:12

My problem is listed in the 2nd line of the post...

I've been using b2evoloution for ages now and I've never thought of SPAMming anyone ... so why the accusation ?

Jul 07, 2017 20:57

Been there... done that...

Jul 10, 2017 14:52

I'm not tracking the validity of users it's just your second line didn't show a problem just a general idea

"The problem is with posts where I integrate javascripts... in some cases it works perfectly and in others, the script part gets stripped and nothing is shown."

So I wonder if it is the same script that always gets stripped in which case maybe you could share it so others could check it out.

If it just a random thing that happens but not always with the same script then it's insertion etc. could be the issue as queried by Josh

Jul 12, 2017 00:54

@josh .... I'm using the Markup mode.... I also tried using the TineMCE source code mode...

@amoun ... No.. these are different scripts... I'll post a few later tonight....

Jul 12, 2017 05:09

@donthecat "script part stripped": do you mean you enter a script in Markup mode, save the post, see no error and then go to edit your post again and the script is gone?

or do you mean, you save and go to front office and script does not execute? In that case, use the JS debugger/console log of your browser and see if it displays any errors when you load the page.

Jul 12, 2017 23:59

@fplanque ... Yes Francois.... but I don't need to Save the post... just shifting to WYSIWYG strips the code... Let me show you visually

Jul 13, 2017 00:01

This is when I use the Source Code Window. After entering the code, I save and the Reopen the Window the code is missing

Jul 13, 2017 00:06

This is what the Browser tells me when I check the New Post page

Jul 13, 2017 00:08

After the above, as you can see from the image below, both Markup and WySiWyg Buttons are disabled..

When I paste the Code again into the Textarea field, the entire page just freezes meaning the browsers default scroll bar is not visible...

I'm forced to close and reopen the browser tab and type some text to 'Release' the frozen buttons.

Jul 14, 2017 02:41

You can't use WYSIWYG if you want to insert JS into your posts.

If you want to use JS, you must stay in Markup mode.

Jul 14, 2017 22:38

@fplanque wrote earlier:

You can't use WYSIWYG if you want to insert JS into your posts.

If you want to use JS, you must stay in Markup mode.

aw come on Francois, I know that... I've been using b2evo since 2005 ;-) ;-)

if you are talking about the 2nd image in post #10.... I insert the code in Markup mode and then check to see the result of the code (which is usually an ad banner) and find that nothing is seen and then when I revert to Markup Mode (image3) it not shows an empty field, but both options are frozen...

Jul 16, 2017 17:37

Again: you MUST NOT switch to WYSIWYG at any time if you want to use JS in your posts. WYSIWYG mode will strip out all JS. (This may have changed more recently than 2005).

Use the Preview button to Preview, not the WYSIWYG button.

Jul 18, 2017 22:08

@fplanque wrote earlier:

Again: you MUST NOT switch to WYSIWYG at any time if you want to use JS in your posts. WYSIWYG mode will strip out all JS. (This may have changed more recently than 2005).

Use the Preview button to Preview, not the WYSIWYG button.

Thanks for that clarification Francois... One learns something every day :-) :-)

Cheers


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.