Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Assign URL to Link-Object

How can I set the URL property of a "Link"-object with javascript?

The name of my object is "mobilelinkWebsiteResult".

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Assign URL to Link-Object

Hello,
You can set the URL property of a Link object using following JavaScript code:
codeTiggzi("mobilelinkWebsiteResult").attr("src", "http://...");/code

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Assign URL to Link-Object

I tried this, but when I click on the link nothing is gonna happen:

Tiggzi('mobilelink4').attr('src', 'http://www.tiggzi.com');

Is there anything else I should add?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Assign URL to Link-Object

Hello! Please check if you are using correct object name

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Assign URL to Link-Object

I checked and copied the object name from the property window. No changes.
I could solve the problem by using a local storage variable which I attached to the link properties.

Anyway, I would like to figure out what's the reason.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Assign URL to Link-Object

Try Tiggzi('mobilelink4').attr('href', 'http://www.tiggzi.com');

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Assign URL to Link-Object

Now it works.
Thanks. You're always a great help

Return to “Issues”