You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by delta458 <de...@hotmail.com> on 2012/11/18 05:23:43 UTC

How to load javascript file in apache wicket?

Hi ;)

I have a javascript file in my web application that uses the
eval(jsonString) Method. Eval() because I am working with JSON too.

My javascript file is inside a package in netbeans. What should I do to make
my javascript file globally aviable for the application and browser?

The problem: The eval method won't start because the .js file is not
recongnized by the browser. JSON.parse(..) does not work too.

So: How do I correctly add this javascript file to my web application. So I
can manipulate it by the web application during runtime and execute the eval
Method?

Any help would be great, thanks




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-load-javascript-file-in-apache-wicket-tp4653976.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to load javascript file in apache wicket?

Posted by Andrea Del Bene <a....@abanet.it>.
Hi,

which version of Wicket are you using? I think you should handle your js 
file as  package resource or shared resource...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to load javascript file in apache wicket?

Posted by delta458 <de...@hotmail.com>.
Edit: This is the correct link

http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly
<http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly>  



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-load-javascript-file-in-apache-wicket-tp4653976p4653989.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to load javascript file in apache wicket?

Posted by delta458 <de...@hotmail.com>.
@Martin: yes, by the browser...

I made a detailed description of the problem here:
http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson
<http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson>  

regards 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-load-javascript-file-in-apache-wicket-tp4653976p4653988.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to load javascript file in apache wicket?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Can you give more details ?
What does it mean: The eval method won't start because the .js file is
not recongnized
by the browser ?

How do you load the .js and JSON in the markup ?


On Sun, Nov 18, 2012 at 6:23 AM, delta458 <de...@hotmail.com> wrote:

> Hi ;)
>
> I have a javascript file in my web application that uses the
> eval(jsonString) Method. Eval() because I am working with JSON too.
>
> My javascript file is inside a package in netbeans. What should I do to
> make
> my javascript file globally aviable for the application and browser?
>
> The problem: The eval method won't start because the .js file is not
> recongnized by the browser. JSON.parse(..) does not work too.
>
> So: How do I correctly add this javascript file to my web application. So I
> can manipulate it by the web application during runtime and execute the
> eval
> Method?
>
> Any help would be great, thanks
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-load-javascript-file-in-apache-wicket-tp4653976.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>