Welcome Guest, Not a member yet? Register   Sign In
anchor onclick and target=_blank
#1

[eluser]PHP Programmer[/eluser]
How can I set onclick function in CI's anchor function.

I used the following:

echo anchor("jobs/SaveJob/$search->jobs_emp_id/$search->employer_id", 'Save this job', "onclick=\"return [removed]save_job('$search->jobs_emp_id','$search->employer_id','$search->job_title')\"");

I didn't get any JS function on clicking the link.
Also, I want the page to be opened in new window. How can I use "target=_blank" along with the above statement.

Also, I need a tooltip (to be called from database) on clicking the link.

Please suggest...


Messages In This Thread
anchor onclick and target=_blank - by El Forum - 09-17-2008, 07:01 AM
anchor onclick and target=_blank - by El Forum - 09-17-2008, 07:27 AM
anchor onclick and target=_blank - by El Forum - 09-17-2008, 11:37 PM
anchor onclick and target=_blank - by El Forum - 09-18-2008, 12:27 AM
anchor onclick and target=_blank - by El Forum - 09-18-2008, 01:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB