[wp-hackers] Using ajax in admin plugin for wp 2.6

Gaarai gaarai at gaarai.com
Fri Jul 25 16:04:31 GMT 2008


You could have saved a lot of time by sending that error in the first 
place. Your problem is that you are doing cross-site scripting. Notice 
that you are trying to call http://myblog.edu... (not secure) from 
https://myblog.edu... (secure). That's your problem.

Aaron Axelsen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've tried that, but then I get stuck with the following error popping 
> up in the firefox error console:
>
> Security Error: Content at 
> https://myblog.edu/wp-admin/post.php?action=edit&post=5 may not load 
> data from http://myblog.edu/wp-admin/admin-ajax.php.
>
> Any ideas?
>
> - --
> Aaron Axelsen
> lists at frozenpc.net
>
> Great hosting, low prices.  Modevia Web Services LLC -- 
> http://www.modevia.com
>
>
>
> Jennifer Hodgdon wrote:
> | Check out:
> |     http://codex.wordpress.org/AJAX_in_Plugins
> |
> |    --Jennifer
> |
> | Aaron Axelsen wrote:
> |> I am working on an expiration date plugin that will add a meta box 
> to the post page, and use ajax to submit the data.  However, i'm 
> having trouble getting the ajax portion to work.
> |>
> |> My understand is that I have to print out some javascript using the 
> "admin_print_scripts" action.  However, i'm not sure what exactly I 
> should put there.
> |>
> |> After that, I know it needs to hook into ajax-admin with the custom 
> action.
> |>
> |> Can anyone offer some thoughts or ideas?  Thanks!
> |
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIifi5uucONIvD0AMRAvINAJ4w5aQvEOPHQiFMWfDiNi+kBGVq4wCdHjuB
> rz1wC3zKBEAeQ6EoBlqAhU4=
> =Y4q0
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list