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 1languagelaunch-new-window--smalllight-bulblinklocation-pinlockm-swarmSearchmailmessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

javascript question "document.write"

From: Anthony Z.
Sent on: Tuesday, October 25, 2011 2:28 PM
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

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