• RU
  • EN

<RhythmCode>

google+ linkedin twitter
  • Just discovered
  • Devblog
  • Projects

Just discovered

AJAX Joomla! driven template

Details
Category: Разработка/Development
Published on Tuesday, 20 December 2011 17:44

Intro

If you are Joomla! developer you have to know that it has no inbuild AJAX functionality (at least till 1.7x version) as its competitions Drupal or Wordpress has, by the way if you are not developer and reading this lines you already have to know too:)

Anyway, there is different solutions like xAJAX library within Blueframe plugin or without, but in most cases developers invent own methods to make it work. And sometimes it becomes confusing and even headachy, and until Joomla! dev team does not make any AJAX API, let me try to make it even more confusing.

Comments

Read more...

iFrame file uploader

Details
Category: Разработка/Development
Published on Sunday, 18 September 2011 19:54

Bit of theory

Driving from the method's name it uses iframe html element to transfer file at server. That's quite simple. HTML standard supposed ability to transfer parent's window form submitted data to any children frame.How they connected? Via the target attribute into the form and according name into frame. The very base sample looks like:

  1. <form action="async-upload" target="iframe-name">
  2. <input type="file" name="async-file" />
  3. <input type="submit" value="upload" />
  4. </form>
  5. <iframe name="iframe-name" src="#";></iframe>

Note the target attribute from the form is the same as name of the frame, where data supposed to be pass. You choose file into form, click submit button, browser pass it into the frame. Current page will not be refreshed, file passed to the server and script async-upload work to them as it supposed to.

Comments

Read more...

Rhythm Code ©2013