xtina: (Default)
JavaScript date/time handling stuff: bad, or the worst?

Originally posted on Dreamwidth.  Number of comments so far: comment count unavailable
xtina: (Default)
I miss the stars in LJ notes.  I don't have or want a paid account in LJ.  I installed Livejournal Addons, and disabled nearly everything but the notes part.  But, it only adds the title attribute for users with notes, it doesn't add a star.

So, I added one.

Steps to do this. )

Originally posted on Dreamwidth.  Number of comments so far: comment count unavailable
xtina: (Default)
I miss the stars in LJ notes.  I don't have or want a paid account in LJ.  I installed Livejournal Addons, and disabled nearly everything but the notes part.  But, it only adds the title attribute for users with notes, it doesn't add a star.

So, I added one.

Steps to do this. )
xtina: (Default)
Is there some sort of reference for Javascript within Thunderbird?

I'm trying to write something:

* I press a button.
* It asks me what kind of email I want to make.
* It starts a draft email based on this.

But I don't know how to create the draft email.

Originally posted on Dreamwidth.  Number of comments so far: comment count unavailable
xtina: (Default)
Is there some sort of reference for Javascript within Thunderbird?

I'm trying to write something:

* I press a button.
* It asks me what kind of email I want to make.
* It starts a draft email based on this.

But I don't know how to create the draft email.
xtina: (Default)
OH for...

Dear the internet:

When people ask you how to do something in some programming or scripting language, please answer their actual question.  You can attach the moralising along with, I've no problem with it, but just saying "Simple: Don't do that!" is incredibly annoying.

No hearts,
-X


I'm trying to find a way to have phpMyAdmin submit a query if the query box is in focus and one of three different keys/key combos is pressed, one of which is F5.  So, I'm looking for how to disable F5, because I'm looking to disable the F5==refresh functionality only when the box is highlighted.

Instead, I get page after page of "You shouldn't do that" and "Just rewrite your app to where F5 doesn't break it" and argh.  Morans.

Originally posted on Dreamwidth.  Number of comments so far: comment count unavailable
xtina: (Default)
OH for...

Dear the internet:

When people ask you how to do something in some programming or scripting language, please answer their actual question.  You can attach the moralising along with, I've no problem with it, but just saying "Simple: Don't do that!" is incredibly annoying.

No hearts,
-X


I'm trying to find a way to have phpMyAdmin submit a query if the query box is in focus and one of three different keys/key combos is pressed, one of which is F5.  So, I'm looking for how to disable F5, because I'm looking to disable the F5==refresh functionality only when the box is highlighted.

Instead, I get page after page of "You shouldn't do that" and "Just rewrite your app to where F5 doesn't break it" and argh.  Morans.
xtina: (Default)
I am missing something extraordinarily obvious, I just know it.

I am using Javascript, because I am using Greasemonkey.  I want to have a GM script that does the following:

* In a textarea field, I highlight a bit of text.
* I clicky the link.  (That I've inserted into the doc via GM, naturally.)
* A prompt comes up, with the highlighted text set as the default.
* I hit OK, so that this script will format the text.
* It replaces the highlighted text with the new text...
* ...and doesn't lose my place.

I can do every other part, but not that last one.  I get vague approximations, but they all completely suck.  Like scrolling to home, then putting the cursor just after the inserted text.  No scrolling, goddammit!  Make like Word's Find/Replace thing, all right?

I am not finding this, and I don't know why.

(Note to self: jQuery + GM?)
xtina: (Default)
I am missing something extraordinarily obvious, I just know it.

I am using Javascript, because I am using Greasemonkey.  I want to have a GM script that does the following:

* In a textarea field, I highlight a bit of text.
* I clicky the link.  (That I've inserted into the doc via GM, naturally.)
* A prompt comes up, with the highlighted text set as the default.
* I hit OK, so that this script will format the text.
* It replaces the highlighted text with the new text...
* ...and doesn't lose my place.

I can do every other part, but not that last one.  I get vague approximations, but they all completely suck.  Like scrolling to home, then putting the cursor just after the inserted text.  No scrolling, goddammit!  Make like Word's Find/Replace thing, all right?

I am not finding this, and I don't know why.

(Note to self: jQuery + GM?)
xtina: (Default)
Is there a page, compares basic PHP / VB / Javascript functions?

Looking for indexOf or inStr or strpos or whateverthefuck == frustrating.
xtina: (Default)
Is there a page, compares basic PHP / VB / Javascript functions?

Looking for indexOf or inStr or strpos or whateverthefuck == frustrating.
xtina: (Default)
Is there a real reason to have a submit button be a link to a Javascript script that submits the form, as versus an honest-to-goodness submit button?
xtina: (Default)
Is there a real reason to have a submit button be a link to a Javascript script that submits the form, as versus an honest-to-goodness submit button?
xtina: (Default)
A miscellaneous thing:

I hear tell that there will be good documentation for styling S2 stuff.  I look forward to that day; styling S2 stuff has always given me brain failure.  One thing I did in an older style was set every possible link to an entry to have "[?|&]format=light".  I like my journal style, I like the site scheme, I just wanted that for every page.

I won't be tinkering too much with S2 until there's a decent walkthrough for it (which I don't think has ever existed for any LJ-like place ever, nrr) (of course, I will get five comments with links in the next few minutes, heh), but I still want format=light, so I added this JS bookmarklet to my toolbar:

javascript:if(location.href.indexOf("format=light")==-1&&location.href.indexOf("dreamwidth.org")>-1&&location.href.indexOf("html")>-1){location.search+=(location.search?'&':'?')+'format=light'}

When you're on an individual page, click on that bookmarklet, and it'll reload the page in format=light.
xtina: (Default)
Via a friend.  You may get an IM stating that your friends-only posts have been stolen.  Yeah, really seriously don't click on that link.  Damn.

A piece-by-piece listing of what that site does.  It's kind of neat, in a horrifying sort of way.
xtina: (Default)
So close.  So close.

Now to have this form's dropdown box open URLs in the right frame when they're selected.

onChange="???.right.location.href = [value]"

Where ??? is I don't know, and [value] is pulled from the value of the option, and the value in the option is the URL-plus-stuff for the right-hand pane.

[eta] True to form, I post and then I discover.  ??? means this.

So:

[option value="right.php?folder=Inbox"]Inbox[option]

and when it's selected:

[select onChange="top.frames['right'].location.href = 'right.php?folder=Inbox'"]

So I need it to be able to figure out the value and put it in the onChange.

Meow.
xtina: A steampunk heart, from here: http://www.girlgeniusonline.com/comic.php?date=20050926 (geeky)
If you're bored and you know Javascript at all, would you mind looking at what I'm trying to do?

The TheScripts.com link.
xtina: (knitting with sticks)
I think I just came up with a thing that'll take width of the knitted item and width of the side borders and plot a chart that shows width of an item, how often it will repeat, with how many columns between each item.

Uh, here, lookit.

Sometime in the future, I may make something that takes the input, asks for a general range of item width and betweens, and just lists options.  But, I'm functionally insane.

[eta] Of course, I have been meaning to learn Javascript...
xtina: (Default)
Eee eee eee I have autocomplete for my tags now eee.  Oh my god.  JavaScript, I love you.

June 2017

S M T W T F S
    123
45678 910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Page generated 2017-06-28 00:22
Powered by Dreamwidth Studios