Hi Pat,

I had edited the Joomla wrapper.html.php because I am using Joomla 1.0.0
for the passing of parameter as the code below:
//-->>
 <?php echo $row->load; ?>
  id="blockrandom"
  name="iframe"
  src="<?php echo $row->url."?userid=1"; ?>"
  width="<?php echo $params->get( 'width' ); ?>"
  height="<?php echo $params->get( 'height' ); ?>"
  scrolling="<?php echo $params->get( 'scrolling' ); ?>"
  align="top"
  frameborder="0"
  class="wrapper<?php echo $params->get( 'pageclass_sfx' ); ?>">
  <?php echo _CMN_IFRAMES; ?>
  </iframe>
//<<--
Now I implemented your advised codes on the gwt-ext side
as seen below with the *import* com.google.gwt.user.client.Window;

//-->>

String myParam= Window.Location.*getParameter*("userid");

Label urlPassedValue = *new* Label(myParam);

frm.add(urlPassedValue);
//<<--

This works! Thanks a lot Pat.

Regards,
Lanz

On Wed, Jun 9, 2010 at 3:58 PM, Patrizio De Michele <[email protected]>wrote:

> String myParam=Window.Location.getParameter("myParam");
> where myParam is a parameter inside the url
> GWT >=1.5
>
> 2010/6/9 lanz <[email protected]>
>
> Hello everyone,
>>
>> I have created my gwt-ext application as a wrapper of Joomla.Basically
>> it's an iframe. Now I want to pass the username to my gwt-ext
>> application via url. Could you give me any idea about this. I have
>> seen some codes like below:
>>
>>  /*
>>       * Default parameters sent with every request
>>       */
>>      UrlParam[] arrParam = { new UrlParam("param1", "myvalue1"),
>>            new UrlParam("param2", "myvalue2") };
>>      ConnectionConfig conCfg = new ConnectionConfig();
>>      conCfg.setUrl("myurl.org");
>>      conCfg.setExtraParams(arrParam);
>>      conCfg.setMethod(Connection.POST);
>>
>>      UrlParam[] arrParam2 = { new UrlParam("codigo", 1) };
>>      RequestParam reqParam = new RequestParam();
>>      reqParam.setParams(arrParam2);
>>
>>      Connection con = new Connection(conCfg);
>>      con.request(reqParam);
>> //==============================
>>
>> Do you know a better way to do this?
>>
>> Thanks,
>> Lanz
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT-Ext Developer Forum" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<gwt-ext%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/gwt-ext?hl=en.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT-Ext Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<gwt-ext%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/gwt-ext?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en.

Reply via email to