function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
trick.ax1374trick.ax1374 

Iframe and visual force

Hi Friends,

 

I have an Html file and I am extracting some data dynamically from the database and passing it to the HTML file.In the Html file I have two text fields in which I want to show he extracted vaalues.However  I have not been able to show those values.

 

Does any one knows how to do that,Any ideas are most welcome.?

Below give is what I am doing 

 

Testapp.html file is the file to which I am sending data

 

<apex:iframe src="http://bostonbusiness.s3.amazonaws.com/testapp/TestApp.html? parameter1=Hello&parameter2={!account.Name}  height="700" width="100%"/>

 

Thanks,

Trick123

Geetha ReddyGeetha Reddy

Hi Trick,

Do you want to pass values using query string parameters?

If so use {!$account.name}

trick.ax1374trick.ax1374

Hi Geetha,

 

When I try your suggestion it give me the below given error

 

Field $account.Name does not exist. Check spelling.

 

Below given is what I Am trying to accomplish:-

<apex:iframe src="http://bostonbusiness.s3.amazonaws.com/testapp/TestApp.html? parameter2={!account.Name}&accountid={!account.id}" height="700" width="100%"/>

 

Basically I have two text fields on the page and I am passing some values to these fields .However,I do not see these values in the text box.

 

Any help will be appreciated?

 

I think it has got something to do with the Iframe.I am not sure if Iframe allows this functionality?

 

 

 

 

Thanks,

Trick

Geetha ReddyGeetha Reddy

<apex:iframe src="http://bostonbusiness.s3.amazonaws.com/testapp/TestApp.html? parameter2={!$account.Name}&accountid={!$account.id}" height="700" width="100%"/>

 

copy and try it once.

trick.ax1374trick.ax1374

Hi Getha,

 

I tried after copying, it still gives me the same error:

Field $account.id does not exist. Check spelling

 

 

Thanks,

Trick