Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Target in same page issue...
Old 01-05-2013, 11:23 AM Target in same page issue...
Brian07002's Avatar
Defies a Status

Posts: 2,301
Name: ...
Location: ...
Trades: 1
Hi,

I have created a target in the same page #target (and it works fine with regular <a href links) but, I want to target a form style link into that #target space, and it opens in the parent window.

Link:
<form method="post" action="http://localhost/advertiser.php#target">

Note: If you noticed, target is a div (id), I am using php to accomplish that. The thing is, I already have my alphanav at the top of the page, with the #target div below, and when I click on any <a href link in the alphanav, the page goes directly to that target and shows the relevant link results. Now what I want is to target the advertiser.php in the <form tag to that same #target div.

Is there a solution for this?

Thank you in advance!
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 01-05-2013 at 11:37 AM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-05-2013, 07:57 PM Re: Target in same page issue...
chrishirst's Avatar
Defies a Status

Posts: 43,970
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't "target" a div id, only the name attribute of a frame or iframe.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-05-2013, 09:32 PM Re: Target in same page issue...
Brian07002's Avatar
Defies a Status

Posts: 2,301
Name: ...
Location: ...
Trades: 1
Quote:
Originally Posted by chrishirst View Post
You can't "target" a div id, only the name attribute of a frame or iframe.
In php you can. If using php switch.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 01-06-2013, 12:01 PM Re: Target in same page issue...
chrishirst's Avatar
Defies a Status

Posts: 43,970
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not with a document fragment marker (#) in the URI because they do not get passed to the server.

And of course this question IS in the HTML section.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-08-2013, 10:12 PM Re: Target in same page issue...
Novice Talker

Posts: 7
Trades: 0
Try $('#object').load(URL) via jQUery. I think it can help.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
nhunet is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Target in same page issue...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18024 seconds with 11 queries