Why do many sites using "#!/" for AJAX? [duplicate] - javascript

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?
Many Ajax sites use #!/ in their URLs. Examples include Twitter (https://twitter.com/#!/Linksku) and Grooveshark (http://grooveshark.com/#!/).
Why do they use the exclamation mark?

https://stackoverflow.com/a/4175129/1232478 links to two Google items that explain it pretty well. In short, it helps make AJAX sites crawlable.
http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html
is ultimately the link.

Related

I want to hide the main-es2015.{some-hash}.js from client devtool source [duplicate]

This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
how to hide javascript code [duplicate]
(4 answers)
Closed 7 years ago.
Is there anyway to hide or secure my javascript code. Because anyone can easily
see my javascript logic on my website using view page source and it's harmful for me. Please tell me any method you know for securing the javascript code or for making it difficult to understand using any encryption method with cannot easily decrypt.
You can't. Don't put sensitive code, keys, information, or logic on the client. The only thing you can do is make it harder to read by running your code through an obfuscator.

Greasemonkey automatically load forum redirects [duplicate]

This question already has answers here:
Modifying all links w/ Greasemonkey
(2 answers)
Closed 5 years ago.
I have very little knowledge in javascript and greasemonkey, so I hope someone here would be kind to answer this easy (I think) question!
Several forums have a redirect page when you click a link that links outside the forum, and you have to click "Continue" to load the page.
The URL of the redirect page can for example be constructed like this:
https://www.forumurl.com/out/?http://outsideurl.com
How should this Greasemonkey script to automatically load http://outsideurl.com when I visit the above forum url look like?
We could to plug ajax and write this code
$("buttonID").click(function(){$("body"/* or your favorite content*/).load( "your url")});

url question mark (javascript sample, how to do it) [duplicate]

This question already has answers here:
How can I get query string values in JavaScript?
(73 answers)
Closed 8 years ago.
Sorry but English is not my mother language. I need a sample on how to make something like this:
I have category and URL is like:
/category
and I want to parse url in javascript to be like this
/category?group=myFirstGroup
I don't know how to express myself, I hope you will understand me. Another example would be like this:
There is a website e.g. www.abc.com with /help section with frequently asked questions for doctors and patients.
I want to give url to people with just questions for doctors or patients, not all questions in one place. Example:
www.abc.com/help?type=doctors (contain just questions for doctors)
www.abc.com/help?type=patients (contain just questions for patients)
I don't think this is a JavaScript specific question. If I understand you right you are talking about query parameters in the context of RESTful Web Services. Is this what you are looking for?

A good reference site for DOM/Javascript [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
A good Javascript API reference documentation related to browsers and DOM
I've searched Google a bit & can't find a good reference for DOM/Javascript. What I would like is a page that shows lists of all the objects & if you click them you get to see which methods and attributes they have.
What one is your favorite?
Sort of like this one for actionscript:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/class-summary.html
I use this: https://developer.mozilla.org/en-US/
I used this a while ago
http://www.java2s.com/Code/JavaScriptReference/CatalogJavaScriptReference.htm

Facebook tag (fb:...) [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Create similar to fb:tag
In addition to my question:
Create similar to fb:tag
I would like to ask if someone knows how did Facebook create fb:tags using xmlns.
Just technologies and some short explanation.
I might find the answers that I am looking for the other question as well!
xmlns is used just to make html valid xhtml, the functionality wont work just by adding fb:.. imported javascript is the on which process these tags

Categories

Resources