animate() is not working on my website, presumably because the
element's position it works on is "static".
I'm trying to support some basic page transitions "out of the
box" in a plugin and now have reached the stage, where I would
like to perform an animate() on the main div (in order to slide left,
right, up, or down).
I'm thinking of detecting, whether the div's position is not
"absolute" / "relative" and then
programmatically change it to "absolute", prior to calling animate().
Found this (old) plugin which seems to simplify the task:
Recently, I've tried out introducing a "jOB - jQuery object builder", currently in the form of a rather complex function called "pP", that takes a cryptive string, I've called "dna".
I'm quite happy so far, but would like to make sure you agree :-)
It results in a lot less lines of code, which I cherish.
Once I got used to it, it helped me get a better overview of the complex workings of this plugin and helped simplify things further, which I probably wouldn't have done, if I left it in the normal fashion.
You can see "normal" code in the bottom part (Pronto variant) of the above link, which I haven't transformed yet.
- It also has embedded debugging and logging and potentially any other useful routine functionality commonly used in plugin development. You can see this embedded debugging already working on the site below.
- It has powerful internal object-oriented handling, that enables e.g. persistent internal variables across plugin calls (!)
- Can you think of anything else I can built into it by default?
What do you think?
- Is there room for such an object builder, that ideally should simplify plugin organisation?
- Do you have the impression, that I'm going in the right direction, provided most of the above objectives can be fulfilled?
In case successful, I would like to share it with other plugin authors, especially for RAD and organisation of jQuery plugins.
I've been using Wordpress + PHP in conjunction with jQuery plugins.
According to Google Trends, Wordpress is still rising in popularity, whereas PHP - I don't know - am a bit worried. To make things worse, two top-notch developers I know say Python is the most modern and powerful language around and the way to go.
I've basically got two or three main questions (they should be interesting for lot's of people):
1) Is it worth switching from PHP to Python? (I'm currently only married to Wordpress with little own stuff in PHP, but it would be a bit of a migration. My webhost supports both PHP and Python for free)
2) Is there something like "Wordpress for Python"? Or even a better CMS in the Python world?
3) Is jQuery biased in its communications to either PHP/Python? Maybe someone could briefly illustrate, what an Ajax handshake with Python looks like. (With PHP and thanks to the beauty of jQuery it's really easy)
You might be asking - what about Java, which is the top-notch programming language worldwide?
There's three reasons I'm not inclined to Java:
- Google itself seems to prefer Python over Java in the long run (I saw so in recruiting ads)
- Java is sort-of now "owned" by Oracle whereas I understand that Python and PHP are not at all proprietary and thus free to evolve with higher dynamics
- Python and PHP are geared more at the web-frontend (which is my current inclination), whereas Java is geared at everything imaginable.
I'm still a newcomer to jQuery but principally very fond of it already.
I'm using html() to pull in a div from a target page and load it into the current page dynamically. This all happens way after the ready event has fired. As we know, the ready event will not be fired again.
The target div contains normal HTML and scripts. The order, in which the scripts should be fired is important. The scripts may be inline scripts or references to external scripts.
It seems html() does not do the job correctly, as all my JS-based content just disappears in the browser window, though visible in Firefox.
Is there a workaround, in order to preserve the correct execution and order of JS content, similar to how the browsers do it on initial page load?
I would be willing to craft a new plugin for this purpose, maybe something like $.fn.iHtml(), if somebody could throw a bit of light into this enquiry.
I believe some folks want Google Analytics to work plain vanilla without the most horrible code snippet Google usually suggests (a bad joke in my opinion) and without ruining their header or making the header less maintainable.
(I argue that the code is shorter than the Google Analytics stub, which no other plugin I'm aware of achieves)
What's your opinion? (This is for the people who sometimes believe less is more)