Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
jQuery i deeplinking

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
base



Joined: 12 Jul 2007
Posts: 96

PostPosted: 29.08.2010 11:58    Post subject: jQuery i deeplinking Add user to your forum ignore list Reply with quote

Koristim ovaj library ovdje:
http://www.asual.com/jquery/address/

I sad ok. to sve skupa radi.
Na address change uzmem vrijednost poslije # i radim u kodu što god hoću.

Mene zanima kako to koristite ako je JS ugašen ili je stranici pristupio search bot?

Dakle ako neko klikne na link
www.mojsite.com/folder/#/neki-html-file.html

Kako to ishandleati?
Recimo da u tom slučaju želim redirect (SEO friendly) na
www.mojsite.com/folder/neki-html-file.html

Hvala.
Back to top
View user's profile Send private message
fun.ky



Joined: 05 Jan 2006
Posts: 365
Location: Mostar

PostPosted: 29.08.2010 14:50    Post subject: Add user to your forum ignore list Reply with quote

<a href="www.mojsite.com/folder/neki-html-file.html " onclick="nekajsfunkcija(); return false;">Link<a/>

Ideja je da link imaš normalno definiran na statičku stranicu (ako je js ugašen korisnik ide na nju) a da imaš poziv neke funkcije na recimo click event i kada korisnik klikne na link ako ima js uključen izvrsi se ta funkcija, i ništa više (korisnik neide na novu strani, sve zahvaljujući - "return false;")

_________________
There is no style definition for good music!
Back to top
View user's profile Send private message Visit poster's website Twitter profile
base



Joined: 12 Jul 2007
Posts: 96

PostPosted: 29.08.2010 15:32    Post subject: Add user to your forum ignore list Reply with quote

Ok. Taj dio za botove radi.

A inbound linkovi?
Nekome se svidi stranica koju gleda i paste-a link iz address bara (sa #).

Hoće li to Google prepoznati kao link na moju stranicu?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group