addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [newtech-1] javascript question "document.write"

From: user 3.
Sent on: Tuesday, October 25, 2011 2:47 PM

use innerHTML() within your ajax callback function.  It looks like you're using jquery, so use the .load() function.
----- Original Message -----
Sent: Tuesday, October 25,[masked]:30 AM
Subject: [newtech-1] javascript question "document.write"

Hey everyone:

I've got a question for some javascript folks here.

We wrote a script that reads the Post Tags entered into a WordPress Tags post-meta box, before those tags are written to the database. We can read the tags on the page that are output by AJAX. That's as far as we've gotten. Since the WordPress does not store the tags until the post is published, we're not able to use php to get_tags, display them, and give the user the ability to select a primary tag.

We are using document.write to try and reprint those tags into another meta-box, so that the author can then select a primary tag, from all tags.

WordPress doesn't seem to like the document.write element after we use .ready when all the Tags are loaded.

Any suggestions as to how to read tags that are output by AJAX, then reprint them somewhere else?

Tony Zeoli, Founder
WordPress | Digital Strategy | IA & UxD
[address removed] | Visit Our Site

My profiles: Facebook Twitter LinkedIn
Contact me: Google Talk djtonyz Skype tonyzeoli

Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Anthony Zeoli ([address removed]) from NY Tech Meetup.
To learn more about Anthony Zeoli, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy