Jump to content


Firefox Toolbar [SOLVED]


9 replies to this topic

#1 _*Creative Insanity_*

  • Guests

Posted 13 July 2007 - 08:53 PM

I am trying to make a toolbar for firefox for my site and all is going well except I have a problem with the toolbar braking when I use a link like:
http://www.dandont.com/invision/index.php?act=Search&CODE=getnew

It seems to be the '&' causing the problem and I have no idea how to fix this. I tried %26 but that did not get the same result.

Anyone have any ideas?

Oh BTW it is XML

Ta muchly

Edited by Creative Insanity, 15 July 2007 - 05:46 AM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 14 July 2007 - 12:40 AM

try replacing it with &

p.s. I deleted the other topic for you. You should be more careful with the submit button next time :P

Edited by rc69, 14 July 2007 - 12:40 AM.


#3 _*Creative Insanity_*

  • Guests

Posted 14 July 2007 - 05:04 AM

That won't work as there is still an ampersand.

Thanks about the other post and I sent a PM to Donna about it.
But hey I am human and humans are prone to error from time to time. :P

Edited by Creative Insanity, 14 July 2007 - 05:05 AM.


#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 14 July 2007 - 01:16 PM

Well there's no harm in trying. You see, XML and HTML, and pretty much any other ML language i know treats the ampersand as a special character. Everything following it up till a semi-colon is then translated to something else.

For instance, make an html page and add: © ® & < >

I don't know how firefox toolbars work, but i know to get HTML to validate at the W3C, you need to use & in your href links. So, i'm assuming the same trick works with firefox.

#5 hk_

    Young Padawan

  • Members
  • Pip
  • 52 posts
  • Gender:Male
  • Location:lost

Posted 14 July 2007 - 02:05 PM

just say im freaking lame but i have to say it you &@%&(^ xD
nice avatar Creative Insanity
it took me like 2 minutes to realise it wastn a fly in the monitor!

Edited by hk_, 14 July 2007 - 02:07 PM.


#6 _*Creative Insanity_*

  • Guests

Posted 14 July 2007 - 03:15 PM

I did try that rc before I posted this thread.

#7 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 14 July 2007 - 06:07 PM

Oh, sorry. It sounded to me like you were assuming. I guess that's what i get for assuming :P

And hk, next time, just send him a pm...

#8 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 14 July 2007 - 06:48 PM

What exactly does the toolbar do and how does it use the URL to do what its doing?
That may clear a few things up, even if some of us have no experience in making toolbars, lol.

#9 _*Creative Insanity_*

  • Guests

Posted 14 July 2007 - 11:08 PM

Ok.. good suggestion demo.
Ok the toolbar is for a music producers site that I help run which is also IPB (spit spit.. other partners choice) and on the bar is buttons for new posts, PM's etc and also some other producing related things just to make life a little easier for the members.
With most, if not all IPB features there is an ampersand somewhere in the url (like the one I posted at the beginning of this thread). I am making this toolbar by hand with just a text editor and my knowledge of xml is limited to say the least.
So finding something to replace an ampersand (&) with is not an easy task, as using one crashes the bar.
I tried %26 (which is the same as I understand) and also %38 (the ascii number) and none work with ipb, but they do with just about every other forum system. I tried also with phpbb and %26 works a treat.

So really all I could thing of at the time was & (didn't work because there is still an ampersand), %26 and %38 and none worked. So that is what prompted this thread as I know there are a heap of smarter people here than me.

#10 _*Creative Insanity_*

  • Guests

Posted 15 July 2007 - 05:49 AM

I just tried & again and it worked. I am puzzled as hell here cause it never did before. All that I can figure out is that maybe I missed the semicolon, I dunno.. but it works now and thanks for all the responces.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users