Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / WYSIWYG enviroment for javascript?

Author
Message
fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 30th Apr 2009 19:35
My problem is editing Javascripts to fit into spaces on my web site, javascripts often make the content way to big, I need to re size things to make them fit into the space I have on my web sites, is there an easy way to do this, an easy way to edit the size and placement.

Is there a visual tool to edit how java script lays things out, I am not much of a coder, is there an easy way to do this without learning javascript, something that is more visual, more of a WYSIWYG enviroment.

One has editors for html, one can paste in some code, in a WYSIWYG window we can edit it, then we can go and coy and paste the new code, so we have an enviroment to edit complex html, but in an WYSIWYG enviroment, is there the same thing for javascript?

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Apr 2009 19:56
i think you're confused about what javascript is, it's not really design/layout language nor does it display anything, that would be HTML and javascript can manipulate the html.

[url="http://dbcc.zimnox.com"][/url]
gbark
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: US - Virginia
Posted: 30th Apr 2009 20:07
Think you may be confusing JavaScript with CSS (or just regular HTML)? Unless you are actually using onLoad() to position elements with a script, which would be redundant to CSS.
fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 30th Apr 2009 21:10 Edited at: 2nd May 2009 04:34
No, I have not confused javascript with CSS or HTML. You go search for javascripts to put on your web page, copy and paste the code into your page and the script will do its job.

What I want to do is paste in javascripts into web pages, but, they are sized too big or need parts moving around. To do this, you need to open the JS and edit it, I want a friendly WYSIWYG enviroment to do this, that way I dont have to be a JS wizard to chnage things, ie button placment or whatever element I want to move around that has been made in the JS code.


I need to edit how things like this are set out, move things about and change the size and position of things.

Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 30th Apr 2009 21:55
I suggest you to code your javascript so that it "appends" itself into element in CSS, in example i make javascript for image cropping.
The target element of my javascript will be id #IMAGE_CROP or class, then the javascript will put itself into that CSS element.

Then you can just place that element somewhere in your code and whola everything is how you did the CSS.

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st May 2009 23:52
I would think that any html editor would update on the fly when changing javascript as it refreshes the page when you make changes and the javascript would run all over again. And the javascript wouldn't even need to run since you're saying its the position and size you need to change, that's just css stuff.

[url="http://dbcc.zimnox.com"][/url]
gbark
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: US - Virginia
Posted: 2nd May 2009 04:35 Edited at: 2nd May 2009 04:36
Hm yeah I'm still a bit confused as to what exactly you're trying to resize, forgive me if I'm still mistaken here...

Are you saying the stuff that the JavaScript code itself is generating (like the buttons or textbox) are too big when it's generated?

If that's the case then you'll need to describe exactly how you want the objects to be created, either in the JavaScript code or in the CSS.

You may be able to use a WYSIWYG editor to generate the CSS for you, paste the CSS into your page (or include it as an attached file), then in the JavaScript code apply any elements you create to the CSS. But other than that, I've never heard of a WYSIWYG for changing the way JavaScript generates objects. Either way, you're probably gonna have to mess with the JavaScript code a little bit.
fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 2nd May 2009 04:43
I ran it through a regular html design program and made the adjustments, it kept the JS and just edited the other parts, so it worked out OK.

Login to post a reply

Server time is: 2025-06-05 02:11:02
Your offset time is: 2025-06-05 02:11:02