Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1
  • 2

TOPIC: Fancy popup

Fancy popup 5 years 2 months ago #1204

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
On the Xerte site i saw a nice (ajax?) popup when I tried tot open the pythagoras module. www.xerte.org.uk/index.php?lang=en&Itemid=702

I'm trying to make such a popup in xerte by embedding a code to a page. In this popup I want to display a text which is a kind of help text that can be used to anser a question.

Does anyone know the code for that?

Thanks.
Holy cow!
The administrator has disabled public write access.

Fancy popup 5 years 2 months ago #1206

  • Inge Donkervoort
  • Inge Donkervoort's Avatar
  • Offline
  • Administrator
  • Hi, my name is Inge. I'm an e-learning advisor.
  • Posts: 150
  • Thank you received: 16
Hi JaapJan,

There is a possibility in Xerte to use the pagetype New Window. Is that something that you could use? The fancy popup at the Xerte community website is a popup in Joomla (another program).

If you use the New Window page you can link it to a file in the Media and Quota folder in your Xerte module. Please use the intern link otherwise when you replace the learning objecte you have to add the link again.

For example: FileLocation + 'media/NAME_FILE.EXT'

There are other possibilities as well. You can use a link to a help text. You can add this on the frontpage from you module and you can acces this helpfile (on the bottom) anywhere in your module.

There is also the possibility of using the glossary (woordenlijst). You can also add this on the front-page of your module.


Bye,
Inge
12Change
I.Donkervoort
www.12change.eu
The administrator has disabled public write access.

Fancy popup 5 years 2 months ago #1207

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Inge, thanks,

I'm more looking for a kind of popup that is generated by the 'automatic-linking-to-the-glossary-thing' :)
Is it possible to use such a code for a new textfield (and a small graphic)?
That is much better than a new window.

Cheers

JaapJan
Holy cow!
Last Edit: 5 years 2 months ago by JaapJan Vroom.
The administrator has disabled public write access.

Fancy popup 5 years 2 months ago #1208

  • Inge Donkervoort
  • Inge Donkervoort's Avatar
  • Offline
  • Administrator
  • Hi, my name is Inge. I'm an e-learning advisor.
  • Posts: 150
  • Thank you received: 16
Hi JaapJan,

For the time being you can use html in the glossary and add an images (and/or sounds) this way. It's already on the list that 'someday' you can create the glossary using a WYSIWYG editor.

Bye,
Inge
12Change
I.Donkervoort
www.12change.eu
The administrator has disabled public write access.

Fancy popup 5 years 1 month ago #1247

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Inge, thanks for your answer

That's not what I need. I'm looking for a way to make a link in a text. Clicking this link have to open a popup with text and even an image. So: no glossary. Is there a simple javascriptcode or ajax-thing? I can not find it, except a simple HTML-popup.
Holy cow!
The administrator has disabled public write access.

Fancy popup 5 years 1 month ago #1275

  • John Smith
  • John Smith's Avatar
  • Offline
  • Moderator
  • Posts: 360
  • Thank you received: 55
Something like this?



Create a new blank "Plain Text" page and insert this code. The <script> part all has to be on same line (it won't work if you reformat)

<a href="" onclick="my_dialog();return false;">Click here</a>
<script>x_dialogInfo.push({"built": false, "type": "my_dialog1"});function my_dialog(){x_openDialog("my_dialog1", "My Dialog 1 Title", "Close", "description", "Hello");};</script>

Each dialog you create will need a unique id, "my_dialog1" above....

John
Last Edit: 5 years 1 month ago by John Smith. Reason: to make more sense...
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: John Smith
Time to create page: 0.588 seconds
Powered by Kunena Forum