calling javascript from coreblug

"Kate Legere" <[email protected]>
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <200506211728296.SM00944@CETSKL>
So this 'ought' to be working but isn't...

I have a blog that has lists of books (library related) and I want to be
able to click on the title of the book and a javascript method to pick the
book from the catalogue...

The method  openWindow(url)
                 Opens a search window and passes the isbn to get the book

I put the javascript file in the contents of the coreBlog and referenced it
as a dtml-var in the index page of the blog. If  look at the source code
it's there beautifully...

In my blog entry I try.....

<a href="openWindow('&qType=ib:&qText=1565123824');">something</a>

And I get. Cannot locate object at:
http://oddBlog/test/2/openWindow%28%27%26qType%3Dib%3A%26qText%3D1565123824%
27%29%3B

I tried the way I reference this normally... <a
href="javascript:openWindow('&qType=ib:&qText=1565123824');">

But then when I save it it erases the entire thing.... sigh

Kate


_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.