I have embed a iFrame from a site I want to embed. This iFrame can be called with different parameters in the URL. For example:
1. ?strasse=A1®ion=HE
2. ?strasse=A2®ion=HE
3. ?strasse=A3®ion=HE
4. ?strasse=A1
5. ?strasse=A2®ion=NRW
6. (or even without)
Now I created a form on my wordpress start page where you can select exactly those parameters. Now I want, if the use pressed submit that the iFrame gets reloaded but this time with the parameters the user has selected. So, I need to change the src="..."
of the iFrame dynamically!
My question now is, how can I do that? - Because it is wordpress I'm struggeling. If it isn't possible with an Ajax request it's not bad. But it would be very nice if we could build an Ajax request...
Has anybody an idea?
Greetings and Thank You!