Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Block Refreshing
by kalamata on 2007/3/1 11:45:14

Quote:

kalamata wrote:
Quote:

Herko Coomans wrote:
Sure you can, use an iframe for the block, and reload the contents of the file the iframe calls.

Herko

Hi Herko,

Many thanks for your prompt reply. What do you do, however, in the case that the php function we are talking about is the one that generates the block and returns a block structure? Would the hack still work?

I look forward to hearing from you soon.

Thanks in advance.

George


Basically, what I want to do is use the Weather block provided by the vlweather module, but give the user the option to select looking at the weather of a number of cities. I have already implemented that using a drop-down list that submits to the page, but this has the disadvantage of reloading the whole page rather than just the block contents. Following what Herko said, does this mean the source of my iframe should be the weather template block?

Thanks,
George
Re: Block Refreshing
by kalamata on 2007/2/27 21:05:35

Quote:

Herko Coomans wrote:
Sure you can, use an iframe for the block, and reload the contents of the file the iframe calls.

Herko

Hi Herko,

Many thanks for your prompt reply. What do you do, however, in the case that the php function we are talking about is the one that generates the block and returns a block structure? Would the hack still work?

I look forward to hearing from you soon.

Thanks in advance.

George
Re: Block Refreshing
by Stewdio on 2007/2/26 20:13:32

Simple, practical and OOTB. I like the way you think Herko!
Re: Block Refreshing
by Herko on 2007/2/26 19:35:15

Sure you can, use an iframe for the block, and reload the contents of the file the iframe calls.

Herko
Block Refreshing
by kalamata on 2007/2/26 19:20:22

Dear All,

I want to put a form in a custom block and every time the user clicks on the Submit button, the content of the block will change according to the user input. One way of doing that is pointing the action to PHP_SELF and use $_GET to get the values of parameters. However, this seems to be bad practice as the whole page is reloaded and takes time and frustrates the user.

Is there any way that I can ask only the particular block to refresh its contents (in a way similar, say, to shoutbox)?

I look forward to hearing from you soon.

Thanks in advance.

George

Who's Online

207 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits