Jump to content

# in address help..


UnknownPlayer

Recommended Posts

I have problem with # char in address and jquery, or any address with #.

When i put this code in my php:

<a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>Open Dialog</a>

.. my link on that button is still same like link that i am on it, it do not add "#" in address, but if i, instead of href="#", put href="#some_text", that link shows nice, link.php#some_text, but without text in # it doesn't work :S

Why is that happening, and how can i fix that?

Link to comment
https://forums.phpfreaks.com/topic/219756-in-address-help/
Share on other sites

No, i tested in .html file, just put # and it works, but in my php code it does not work when i put only #, and i saw javascript is using this # or ajax, and i will need that for later, but i think that is something wrong with my php code, and cant recognize # :S

Can i make somehow to # works ?

Link to comment
https://forums.phpfreaks.com/topic/219756-in-address-help/#findComment-1139255
Share on other sites

No no, look this code:

<a href="#">Button</a>

and there is a img:

ssssnf.png

but if i put(in this way it works fine):

<a href="##">Button</a>

or

<a href="#some_text">Button</a>

it shows me like this:

33549363.png

ddddlq.png

 

And now i dont know why it wont work if i put only one #, becouse i saw in jquery that they put only one # and it works to them, but it doesn't work on my php code :( ?

Link to comment
https://forums.phpfreaks.com/topic/219756-in-address-help/#findComment-1139263
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.